/*
 * @Author: duchengdong
 * @Date: 2021-12-27 19:05:43
 * @LastEditors: lizhen
 * @LastEditTime: 2021-12-30 10:42:20
 * @Description:
 */
import {requestAuth} from '@/request/request'

// 查询当前打卡状态的接口+
export async function getSignInStatusApi() {
	const url = `/app/patient/getSignInData`
	let res = await requestAuth({
		url,
		method: 'GET',
	})
	return res
}

// 用药打卡接口
export async function signInApi() {
	const url = `/app/patient/saveSighData`
	let res = await requestAuth({
		url,
		method: 'POST',
	})
	return res
}

// 用户打卡天数和次数
export async function getSignInDaysApi() {
	const url = `/app/signin/signinInfoIndex`
	let res = await requestAuth({
		url,
		method: 'GET',
	})
	return res
}

// 查询打卡日历
export async function getSignInCalendarApi(year, month) {
	const url = `/app/signin/signinInfoCalendar?year=${year}&month=${month}`
	let res = await requestAuth({
		url,
		method: 'GET',
	})
	return res
}
